package cn.s1995.sloth.bizs.oo.vo;

import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@Builder
@Schema(description = "地区树形数据")
@JsonIdentityInfo(
        generator = ObjectIdGenerators.IntSequenceGenerator.class
)
public class PCDTreeVO implements Serializable {
    @Schema(description = "值")
    private String value;
    @Schema(description = "名称")
    private String label;
    @Schema(description = "经度")
    private BigDecimal lng;
    @Schema(description = "纬度")
    private BigDecimal lat;
    @Schema(description = "子节点数据")
    private List<PCDTreeVO> children;
}
